r 您所在的位置:网站首页 standardized difference怎么计算 r

r

2023-12-24 21:48| 来源: 网络整理| 查看: 265

Author of cobalt here. What the reviewer is requesting doesn't really make a lot of sense. The bias in an effect estimate is a function of the mean difference of each level of the categorical variable. You could create a one-dimensional summary of balance for that categorical variable, e.g., as the maximum SMD for that variable, and then just mention the interpretation of that summary in the caption of your table. There isn't a way to do this automatically in cobalt, and it seems to me to lose important information.

I will note that there has been a value proposed as an equivalent to the SMD for categorical variables. This was proposed by Yang and Dalton (2012). It doesn't have an intuitive interpretation except vaguely as the equivalent of the SMD. It is calculated as the Mahalanobis distance between the two samples based on the categorical variable. A nice aspect of its interpretation is that for two-level variables, the formula reduces to the SMD. The bias in the effect estimate is not a function of this value, though, at it seems to me that it would be possible to have an extreme imbalance in one level of the variable that is masked by the other levels.

It is not in cobalt because the current framework wouldn't work with it (cobalt turns the supplied dataset into a numerical matrix, losing the relationship among levels of the categorical variable by turning them into dummy variables). There is another package that can be used to assess balance called tableone, which does compute this modified SMD for categorical variables. It also produces beautiful tables, much nicer than those from cobalt, the latter of which are mainly for use in balance assessment rather than reporting. You can see examples of such a table using the modified SMD on the package vignette.

This is such a minute detail for a reviewer to focus on. SMDs themselves are an arbitrary method to assess balance, so it's not clear to me why a specific method of computing a summary SMD should be preferred over another. Given that this value the reviewer wants you to compute is just a summary of the balance for each categorical variable, you could choose any summary and explain it in a caption. No one summary is superior to another. As long as you can convincingly demonstrate balance, you should be okay.



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有